package de.szut.pongsim.physics;

public enum HorizontalDirection {
	LEFT(-1),
	RIGHT(1);
	
	private int nextStep;
	
	HorizontalDirection(int nextStep) {
		this.nextStep = nextStep;
	}
	
	public HorizontalDirection toggled() {
		if (this == HorizontalDirection.LEFT) {
			return HorizontalDirection.RIGHT;
		}
		return HorizontalDirection.LEFT;
	}
	
	public int getNextStep() {
		return nextStep;
	}
	
}
